const {defineComponent, ref} = Vue

const setup = () => {
    const count = ref(0)
    const add = () => {
        count.value += 1
    }
    return {count, add}
}

const template = `
<div>
    <h3>{{ count }}</h3>
    <button @click="add">Add</button>
</div>
`

export default defineComponent({setup, template})
